/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const alarmRouter = {
  path: '/alarm',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Alarm',
  meta: {
    roles: ['editor', 'admin'],
    title: '报警模块',
    icon: 'alarm'
  },
  children: [
    // {
    //   path: 'alarm-list',
    //   component: () => import('@/views/alarm/alarm/alarm-list'),
    //   name: 'AlarmList',
    //   meta: {
    //     roles: ['admin', 'editor'],
    //     title: '报警管理',
    //     icon: 'device-alarm',
    //     noCache: true,
    //     affix: true,
    //     breadcrumb: false
    //   }
    // },
    {
      path: 'quota-alarm',
      component: () => import('@/views/quota/quota-alarm'),
      name: 'QuotaAlarm',
      meta: {
        roles: ['admin', 'editor'],
        title: '指标报警',
        icon: 'el-icon-s-data',
        noCache: true,
        affix: true,
        breadcrumb: false
      }
    },
    {
      path: 'alarm-log',
      component: () => import('@/views/quota/alarm-log'),
      name: 'AlarmLog',
      meta: {
        roles: ['admin', 'editor'],
        title: '报警日志',
        icon: 'el-icon-s-data',
        noCache: true,
        affix: true,
        breadcrumb: false
      }
    }
  ]
}

export default alarmRouter
